<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #current{
            background-color: #000;
            color: #f00;
            font-size: 100px;
            font-weight: 100px;
        }
    </style>
</head>
<body>
    <span id="current">3</span>
    <script>
        setTimeout("openMain()",3000 );
        function openMain(){
            window.location.assign("http://www.njpi.edu.cn")
        }
        alert("打开学校网址");
        var currentObj=document.getElementById("current");
        var currentNum=currentObj.innerText;;
        var timer=setInterval(()=>{
            currentNum-=1;
            currentObj.innerText=currentNum;
            if(currentNum==0){
                clearInterval(timer);
            }
        },750);
    </script>
</body>
</html>